/**
 * 作者：陈文斌 on 2019/1/18.
 * 邮箱：chen_wennbin@163.com
 * 版本：v1.0
 */

import 'package:json_annotation/json_annotation.dart';
import 'package:crm/model/Employee/employee_model.dart';
import 'package:crm/model/Friend/friend_group_model.dart';
import 'package:crm/model/Company/company_department_model.dart';

part 'friend_model.g.dart';

@JsonSerializable()
class FriendModel extends Object with _$FriendModelSerializerMixin {
  String Id;
  String MeId;
  EmployeeModel Me;
  String FriendId;
  EmployeeModel Friend;
  String GroupId;
  FriendGroupModel Group;
  List<CompanyDepartmentModel> CompanyDepartment;

  FriendModel(
    this.Id,
    this.MeId,
    this.Me,
    this.FriendId,
    this.Friend,
    this.GroupId,
    this.Group,
    this.CompanyDepartment,
  );

  @override
  factory FriendModel.fromJson(Map<String, dynamic> json) => _$FriendModelFromJson(json);
}
